// /hotelMg/getPersonInfo  酒店人员详情 映射表
import moment from "moment";


export const personList = [
  {
    label: "姓名",
    value: "name",
  },
  {
    label: "性别",
    value: "gender",
    dictType: "gender",
  },
  {
    label: "出生日期",
    value: "birthday",
  },
  {
    label: "年龄",
    value: "age",
  },
  {
    label: "证件类型",
    value: "cardType",
    dictType: "card_type",
  },
  {
    label: "证件号",
    value: "idCard",
  },
  {
    label: "手机号码",
    value: "telPhone",
  },
  {
    label: "房号",
    value: "roomNum",
  },
  {
    label: "入住时间",
    value: "moveStartTime",
  },
  {
    label: "结束时间",
    value: "IsolateEndTime",
    slotFn: ({ row }) =>
      moment(row.isolateStartTime)
        .add(row.moveDay, "days")
        .format("YYYY-MM-DD HH:mm:ss"),
  },
];
export const contactList = [
  {
    label: "紧急联系人关系",
    value: "emergencyContactType",
  },
  {
    label: "紧急联系人姓名",
    value: "emergencyContactName",
  },
  {
    label: "紧急联系人电话",
    value: "emergencyContactPhone",
  },
  {
    label: "紧急联系人地址",
    value: "emergencyContactAddress",
  },
];
